const sequelize = require('../config/sequelize')
const Sequelize = require('sequelize')

const Image = sequelize.define('image', {
    vaild: {
        type: Sequelize.BIGINT,
        field: 'valid'
    },
    imageId: {
        type: Sequelize.BIGINT,
        field: 'id'
    },
    userId: {
        type: Sequelize.BIGINT,
        field: 'user_id'
    },
    thumbPath: {
        type: Sequelize.STRING(255),
        field: 'thumb_path'
    },
    path: {
        type: Sequelize.STRING(255),
        field: 'path'
    }
})

module.exports = Image